<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <p v-for='(item,index) of users' :key='index'>
            {{item.name}}  ==== {{item.age}}
        </p>
        <button @click='change'>修改</button>
    </div>
    <script src="../../vue.js"></script>
    <script>
        new Vue({
            el : '#app',
            data : {
               users : [
                   {name : '张三',age :13},
                   {name : '李四',age :14},
                   {name : '王五',age :15}
               ]
            },
            methods : {
                change(){
                    this.users[0].name = '校长'
                }
            }
        })
    </script>
</body>
</html>